﻿using System.Windows;
using Microsoft.Phone.Controls;
using Microsoft.Silverlight.Testing;

namespace mal.WP7.GoogleAnalytics.UnitTest
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent(); Loaded += new RoutedEventHandler(MainPage_Loaded);
        }

        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            IMobileTestPage imobileTPage = UnitTestSystem.CreateTestPage() as IMobileTestPage;
            (Application.Current.RootVisual as PhoneApplicationFrame).Content = imobileTPage;
        }
    }
}